package com.chenfan.ccp.common.exception;

import com.chenfan.ccp.common.result.IResultCode;
import lombok.Data;

@Data
public class ApiException extends BaseException {
	private static final long serialVersionUID = 1L;

	public ApiException() {

	}
	public ApiException(IResultCode e) {
		super(e.getCode(), e.getMessage(), null);
	}
	public ApiException(IResultCode e,Exception ex) {
		super(e.getCode(), e.getMessage(), ex);
	}
}
